package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("devicetoken")
public class DeviceToken implements Serializable {
    private static final long serialVersionUID = 1L;

    @Field("_id")
    private String id;

    private String a;

//    private String uuid;

    @Field("mobile_type")
    private String mobileType;

    private String sysVersion;

    private String appVersion;

    @Field("voip_devicetoken")
    private String voipDevicetoken;

    @Field("package")
    private String packageName;

    private String version;

    private String accesstoken;

    private Integer haveMqtt;

    private Date expiryAt;

    @Field("t")
    private Double time;
}
